package com.freight.core.dao;

import com.freight.core.base.FreightBaseDao;
import com.freight.core.entity.Role;

import java.util.List;

/**
 * 角色数据处理层
 * @describe x
 */
public interface RoleDao extends FreightBaseDao<Role, Long> {

    /**
     * 获取默认角色
     * @param defaultRole
     * @return
     */
    List<Role> findByDefaultRole(Boolean defaultRole);

    /**
     * 通过roleId查找
     * @param name
     * @return
     */
    List<Role> findByName(String name);
}
